import { NavigationContainer } from '@react-navigation/native'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import React, { Component } from 'react'
import { LoginPage } from '../view/Login/index'
import { Home as HomeScreen } from '../view/home'

const Stack = createNativeStackNavigator()

export class App extends Component{
  render(){
    return(
      <NavigationContainer>
        <Stack.Navigator initialRouteName="Home">
          <Stack.Screen name="Home" component={HomeScreen}/>
          <Stack.Screen name='LoginIndex' component={LoginPage}/>
        </Stack.Navigator>
      </NavigationContainer>
    )
  }
}